package com.sgb.kjwl.model.response;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class ListMResponse<T> implements Serializable {

    /**
     * total : 6
     * current : 1
     * pages : 1
     * size : 20
     * records : []
     */

    private int total;
    @SerializedName(value = "current", alternate = {"pageNumber"})
    private int current;
    @SerializedName(value = "pages", alternate = {"totalPage"})
    private int pages;
    private int size;
    @SerializedName(value = "list", alternate = {"products", "records", "content", "record", "assetList"})
    private T list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public T getList() {
        return list;
    }

    public void setList(T list) {
        this.list = list;
    }
}
